<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<f:loadBundle basename="messages" var="msgs" />

<h:head></h:head>

<h:body>

	<style type="text/css">
.ui-widget, .ui-widget .ui-widget {
    font-size: 85%;
}
</style>
	
	<h1 class="ui-widget-header" style="font-size:larger">#{msgs.BulkMail}</h1>

	<h:form class="ui-widget">
		<h:outputText value="#{msgs.AttachmentProblem}"
			rendered="#{mailBean.attachmentProblem == true}" style="color:red" />
		<ui:fragment rendered="#{mailBean.attachmentProblem == true}">
			<br />
		</ui:fragment>
		<h:outputText value="#{msgs.EmailProblem}"
			rendered="#{mailBean.emailProblem == true}" style="color:red" />
		<ui:fragment rendered="#{mailBean.emailProblem == true}">
			<br />
		</ui:fragment>
		<h:outputText
			value="#{msgs.FragmentsSent}: #{mailBean.numberOfPartsSent}" />
		<br />
		<br />
		<p:commandButton value="#{msgs.Back}" icon="ui-icon-arrowthick-1-w" action="/user/sendmail" />
		<p:commandButton value="#{msgs.Logout}" action="#{loginBean.logout}" />
	</h:form>

</h:body>

</html>